package com.leaf.spring.y201911.day15;

import com.leaf.spring.y201911.day15.manager.BaseManager;
import com.leaf.spring.y201911.day15.manager.ManagerFactory;

public class MsgHandle implements Runnable {

	@Override
	public void run() {

		while (true) {
			BaseManager baseManager = ManagerFactory.getManager(ManagerFactory.MY_MANAGER);
			baseManager.logic();

			try {
				Thread.sleep(2000l);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}

	}

}
